package com.dxj1992.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class UserAsset implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * users.id
     */
    @TableId
    private Integer userId;

    /**
     * 剩余金额
     */
    private BigDecimal balance;

    /**
     * 冻结金额
     */
    private BigDecimal frozen;

    /**
     * 累计充值
     */
    private BigDecimal totalRecharge;

    /**
     * 累计提现
     */
    private BigDecimal totalWithdraw;

    /**
     * 累计退款
     */
    private BigDecimal totalRefund;

    /**
     * 累计扣款
     */
    private BigDecimal totalConsume;

    /**
     * 累计支出
     */
    private BigDecimal totalExpend;

    /**
     * 累计收入
     */
    private BigDecimal totalIncome;

    private Date createdAt;

    private Date updatedAt;

    public UserAsset(Integer userId) {
        this.userId = userId;
    }
}
